﻿/****************************** Module Header ******************************\
 * Module Name:  tOrderDeliveryArea.cs
 * Module Version:  1.0.0 (2013-01-25)
 * Copyright (c) AnyEB.Com (14507247@qq.com)
 * 
 * This source is subject to the GPL License.
 * See http://www.gnu.org/licenses/gpl.html.
 * All other rights reserved.
 * 
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 
 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
\***************************************************************************/

using System;

namespace UCL.Data.ORM.UMD
{
	/// <summary>
    /// 订单-配送管理-配送地区 数据实体类
	/// </summary>
    [DBTable(Common = "订单-配送管理-配送地区")]
	public class tOrderDeliveryArea
	{
		/// <summary>
		/// Guid编号
		/// </summary>
		public Guid ID { get { return _ID ?? default(Guid); } set { _ID = value; } }

        [DBColumn(Alias = "Guid编号", IsKey = true, DefaultValue = "newid()")]
        private Guid? _ID;

        /// <summary>
        /// 地区名称
        /// </summary>
        public string Name { get { return _Name; } set { _Name = value; } }

        [DBColumn(Alias = "地区名称", Length = "32")]
        private string _Name;

        /// <summary>
        /// 上级分类的编号
        /// </summary>
        public Guid ParentID { get { return _ParentID ?? default(Guid); } set { _ParentID = value; } }

        [DBColumn(Alias = "上级分类的编号", DefaultValue = "00000000-0000-0000-0000-000000000000")]
        private Guid? _ParentID;

        /// <summary>
        /// 配送方式编号
        /// </summary>
        public Guid DeliveryID { get { return _DeliveryID ?? default(Guid); } set { _DeliveryID = value; } }

        [DBColumn(Alias = "配送方式编号")]
        private Guid? _DeliveryID;

		/// <summary>
        /// 首重费用
		/// </summary>
		public decimal FirstCost { get { return _FirstCost ?? default(decimal); } set { _FirstCost = value; } }

        [DBColumn(Alias = "首重费用")]
		private decimal? _FirstCost;

		/// <summary>
        /// 续重费用
		/// </summary>
		public decimal AdditionalCost { get { return _AdditionalCost ?? default(decimal); } set { _AdditionalCost = value; } }

        [DBColumn(Alias = "续重费用")]
		private decimal? _AdditionalCost;

		/// <summary>
		/// 状态
		/// </summary>
		public short State { get { return _State ?? default(short); } set { _State = value; } }

		[DBColumn(Alias="状态", DefaultValue="0")]
		private short? _State;

		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreatedTime { get { return _CreatedTime ?? default(DateTime); } set { _CreatedTime = value; } }

		[DBColumn(Alias="创建时间", DefaultValue="getdate()")]
		private DateTime? _CreatedTime;

		/// <summary>
		/// 最后更新时间
		/// </summary>
		public DateTime ModifiedDate { get { return _ModifiedDate ?? default(DateTime); } set { _ModifiedDate = value; } }

		[DBColumn(Alias="最后更新时间", CanBeNull=true)]
		private DateTime? _ModifiedDate;

		/// <summary>
		/// 是否删除
		/// </summary>
		public bool IsDeleted { get { return _IsDeleted ?? default(bool); } set { _IsDeleted = value; } }

		[DBColumn(Alias="是否删除", DefaultValue="0")]
		private bool? _IsDeleted;

		/// <summary>
		/// 网站标签
		/// </summary>
		public string SiteTag { get { return _SiteTag; } set { _SiteTag = value; } }

		[DBColumn(Alias="网站标签", CanBeNull=true, Length="16")]
		private string _SiteTag;

	}
}
